#import "JokeActionBar.h"

#define LIGHT_BLUE [UIColor colorWithRed:3.0/255.0 green:141.0/255.0 blue:189.0/255.0 alpha:1.0]

@implementation JokeActionBar

@synthesize owner;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //
    }
    return self;
}

- (void)dealloc {
    PP_RELEASE(commentBtn);
    PP_RELEASE(favoriteBtn);
    PP_RELEASE(shareBtn);
    PP_RELEASE(leftBtn);
    PP_RELEASE(rightBtn);
    [super dealloc];
}

- (void)start:(id<JokeActionBarDelegate> )pOwner {
    self.owner = pOwner;
}

- (IBAction)pressCommentBtn:(id)sender {
    [owner JABcomment];
}

- (IBAction)pressFavoriteBtn:(id)sender {
    [owner JABfavorite];
}

- (IBAction)pressShareBtn:(id)sender {
    [owner JABshare];
}

@end

